import { get, post } from '@/utils/request'

// 获取门店列表
export const list = (params) => get('api/stores/list', params)

// 删除单个门店
export const del = (params) => get('api/stores/delete', params)

// 添加门店
export const add = (data) => post('api/stores/add', data)

// 更新门店
export const update = (data) => post('api/stores/update', data)

// 批量删除门店
export const batchDelete = (data) => post('api/stores/deleteall', data)

// 获取单条门店信息
export const getStore = (params) => get('api/stores/get', params)

// 获取门店经营范围列表
export const getServiceList = (params) => get('api/storeservices/list', params)